import requests
import json


headers = {
    "accept": "application/json, text/plain, */*",
    "accept-language": "zh-CN,zh;q=0.9",
    "content-type": "application/json",
    "device-id": "BbJMY9+o9JRn9ZhaNV11S/HkPRQwbXcW+Rbu3m41vwt6R5zGi0fcDYtfMwGPpbyMgHzu44CRU1Mdfg7X73BG2SA==",
    "eagleeye-pappname": "fyw9n1jhpf@07619cbd1f4e9df",
    "eagleeye-sessionid": "OLmm506hxb6jFFq7kuthvmpv8ROy",
    "eagleeye-traceid": "be346a0a172604031394910234e9df",
    "h5version": "v1.0.0",
    "origin": "https://www.qizhidao.com",
    "priority": "u=1, i",
    "referer": "https://www.qizhidao.com/",
    "sec-ch-ua": "\"Chromium\";v=\"128\", \"Not;A=Brand\";v=\"24\", \"Google Chrome\";v=\"128\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-site",
    "sensordeviceid": "19149dbbd7f685-04acea045abdc54-26001e51-2073600-19149dbbd802ef",
    "sensorsdistinctid": "19149dbbd7f685-04acea045abdc54-26001e51-2073600-19149dbbd802ef",
    "signature": "bf8e7f2b26a1b095b865edc574c1a238.FXWqoa",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
    "user-agent-web": "X/ea461f08dd7efc009a1dc21ce75be14e"
}
cookies = {
    "wz_uuid": "X%2Fea461f08dd7efc009a1dc21ce75be14e",
    "sensorsdata2015jssdkchannel": "%7B%22prop%22%3A%7B%22_sa_channel_landing_url%22%3A%22%22%7D%7D",
    "Hm_lvt_9ea3e7293b7c088e0d2c88874b63e7dd": "1723521098,1726024568",
    "HMACCOUNT": "EA447ECC51709984",
    "sensorsdata2015jssdkcross": "%7B%22distinct_id%22%3A%2219149dbbd7f685-04acea045abdc54-26001e51-2073600-19149dbbd802ef%22%2C%22first_id%22%3A%22%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22identities%22%3A%22eyIkaWRlbnRpdHlfY29va2llX2lkIjoiMTkxNDlkYmJkN2Y2ODUtMDRhY2VhMDQ1YWJkYzU0LTI2MDAxZTUxLTIwNzM2MDAtMTkxNDlkYmJkODAyZWYifQ%3D%3D%22%2C%22history_login_id%22%3A%7B%22name%22%3A%22%22%2C%22value%22%3A%22%22%7D%2C%22%24device_id%22%3A%2219149dbbd7f685-04acea045abdc54-26001e51-2073600-19149dbbd802ef%22%7D",
    "acw_tc": "784e2c9c17260392299781093e5ddaa7b60899fe17c51e625ad045191612a6",
    "s_webp": "s",
    "x-web-ip": "114.216.162.68, 121.199.80.149, 120.78.44.168, 100.121.99.241",
    "Hm_lpvt_9ea3e7293b7c088e0d2c88874b63e7dd": "1726040160",
    "accessToken": "",
    "token": ""
}
url = "https://app.qizhidao.com/qzd-bff-pcweb/qzd/captcha/validCaptcha"
data = {
    "randstr": "@CrB",
    "ticket": "tr039UHMlz2YWVDWfAeEhPN9ZWQYJeUTho9BzOlwLPo9KZL4nLFBut96NRbulr8fFx3pRrOnaNaB83tbeuRL87NZc91trSMtdCAekyfNBY950YU891utn13Zqw**",
    "url": None,
    "validCode": 1000006
}
data = json.dumps(data, separators=(',', ':'))
response = requests.post(url, headers=headers, cookies=cookies, data=data)

print(response.text)
print(response)